<form action="mailcontent.manage.php?action=save" method="post" id="form_modimailcontent">
<input type="hidden" name="txtContent" id="txtContent" />
<table border="0" cellpadding="0" cellspacing="0" class="from_table">
 	<tr>
	  <th width="200"><tpl> $lanagMailTitle </tpl></th>
		<td class="td rowform"><input name="txtMailTitle" type="text"class="txtinput " id="txtMailTitle" maxlength="40" value="<tpl>$mail_content_array.title</tpl>" /></td>
	  <td width="40%" class="vtop tips2"><label style="display:none" for="txtMailTitle" class="wrong" metaDone="true" generated="true"></label><tpl> $lanagMailSendTitleInset </tpl></td>
	</tr>
	<tr>
	  <th width="200"><tpl> $lanagMailExplain </tpl></th>
		<td class="td rowform"><textarea name="txtMaildesc" id="txtMaildesc" cols="50" rows="5" class="tarea"><tpl>$mail_content_array.maildesc</tpl></textarea></td>
	  <td width="40%" class="vtop tips2"><label style="display:none" for="txtMaildesc" class="wrong" metaDone="true" generated="true"></label><tpl> $lanagMailFalseCodeNeedTechnicTogether </tpl></td>
	</tr>
	
	<tr>
	  <th width="200"><tpl> $lanagMailContent </tpl></th>
		<td class="td rowform" colspan="2">
			<tpl>php</tpl>
			include("../classes/resource/fckeditor/fckeditor.php") ;
			$oFCKeditor = new FCKeditor('content') ;
			$oFCKeditor->BasePath	= '../classes/resource/fckeditor/' ;
			$oFCKeditor->ToolbarSet = 'Simple';
			$oFCKeditor->Width	= 385 ;
			$oFCKeditor->Height	= 220 ;
			$oFCKeditor->Value		= $this->_tpl_vars['mail_content_array']['content'];
			$oFCKeditor->Create() ;
			<tpl>/php</tpl>
			<label style="display:none" for="txtMaildesc" class="wrong" metaDone="true" generated="true"></label><br /><tpl> $lanagMailSendContentInseImageInfo </tpl>		</td>
	</tr>
	<tr>
		<td width="200" class="td rowform">		</td>
	    <td colspan="2" class="td rowform">	<input name="hideGenre" type="hidden" id="hideGenre" value="<tpl> $mail_content_array.genre </tpl>" />
		
			<input type="hidden" name="mail_id" value="<tpl> $mail_content_array.mail_id </tpl>" />		</td>
    </tr>
</table>
<div class="table-5-bottom">

<div class="btn_marginleft_1">
<span class="btn_left">	<input type="submit" name="Submit" value="<tpl> $lanagMailSubmit </tpl>" class="btn_submit" /></span>
	<span class="btn_left">		<input id="butt_listmail" class="btn_submit" type="button" value="<tpl> $lanagMailReturnList </tpl>" /></span>
	</div>
	</div>
</form>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
	$("#butt_listmail").click(function(){
		ShowDiv = "result_content";
		getPageContent("mailcontent.manage.php?action=ajaxlist&curpage=<tpl> $curpage </tpl>");
	});
	var msg = "<tpl> $lanagMailAmendOkSave </tpl><a href='javascript:;' onclick='getContent(this, \"<tpl> $navers[1].body.1.url </tpl>\")'><tpl> $lanagMailHere </tpl></a>";
	var options = {
		beforeSubmit:  function(){showLoading(showSaveText);},
		success:       function(msg){
			hideLoading();
			showMessage(msg.message,msg.type);
			if(msg.type == '1'){
				ShowDiv	= 'result_content';
				getPageContent("mailcontent.manage.php?action=ajaxlist&curpage=<tpl> $curpage </tpl>");
			}
		},
		type:      'post',
		dataType:  'json'
	};
	//对添加表单做的验证定义
	$("#form_modimailcontent").validate({
		errorClass: "wrong",
		rules: {
			txtMailTitle: {required:true}
		},
		messages: {
			txtMailTitle: {required: "<tpl> $lanagMailPleaseFillInTemplateTitle </tpl>"}
		},
		submitHandler: function() {
			//将FCK值写入隐藏域
			var oEditor = FCKeditorAPI.GetInstance('content');
			$('#txtContent').val(oEditor.GetXHTML(true));
			$('#form_modimailcontent').ajaxSubmit(options);
		}
	});
});

</script>